import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { OrderEntity } from "./order.entity";

@Entity({ name: 'log' })
export class LogEntity extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({
        type: "int",
        default: 0
    })
    orderId: number;//订单id

    @Column({
        type: "int",
        default: 0
    })
    guestId: number;

    @Column({
        type: "text",
    })
    content: string;

    @Column({
        type: "datetime",
    })
    gmt_create: Date;

}
